package com.ruoyix.im.domain.bo;

import com.ruoyix.common.core.domain.BaseEntity;
import com.ruoyix.common.core.validate.AddGroup;
import com.ruoyix.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * 好友业务对象 im_chat_user_friend
 *
 * @author ruoyi
 * @date 2024-05-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ImChatUserFriendBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 好友ID
     */
    @NotNull(message = "好友ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long friendId;

    /**
     * 朋友状态[0:未审核，1:审核通过]
     */
    @NotNull(message = "朋友状态[0:未审核，1:审核通过]不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long friendStatus;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;



}
